﻿<div class="mod">
<div class="mod-tit"><a href="#"><?php echo $this->title; ?></a></div>
          <div class=" mod-cont">
            <div class="table">
              <table cellpadding="3" cellspacing="3" border="0" width="100%">
                <tr>
                  <th width="35%"><?php echo $this->array['title']; ?></th>
                  <th ><?php echo $this->array['name']; ?></th>
                  <th width="20%"><?php echo $this->array['price']; ?></th>
                  <th  width="15%"><?php echo $this->array['job']; ?></th>
                </tr>
              </table>
            </div>
            <div class="table">
              <!--div class="tag-new"><img src="images/new.png" /></div-->
              <table cellpadding="3" cellspacing="3" border="0" width="100%">
                <tr>
                  
                  <?php foreach ( $this->model as $i){ ?>
                  <td width="35%"><div class="ava">
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/ava2.gif" align="left" /><?php echo $i->user->name; ?> <br />
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/star.png" />
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/star.png" />
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/star.png" />
                        <td  align="center"><?php echo $i->desc; ?></td>
                        <td  width="20%" align="center"><?php echo $i->money ?><br /><?php echo 'Trong '.$i->timeduration.' ngày'; ?></td>
                        <td width="15%" align="center"><?php echo date('d-m-Y', strtotime($i->timepost));; ?> </td>
                </tr>
                  <?php } ?>
              </table>
            </div>
          </div>
          <div class="clr"></div>
        </div>
		</div>